<script setup>
import {onBeforeUnmount} from 'vue'

onBeforeUnmount(() => {
  // 清除本地缓存的商品信息
  window.localStorage.removeItem('productStore')
})
</script>

<template>
  <div class="app">
    <router-view></router-view>
  </div>
</template>

<style scoped>
.app {
  min-width: 1260px;
}
</style>
